<?php

use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

//Route::get('/', function () {
//    return view('kexue.w_index');
//});
//Route::resource('index', IndexController::class);
Route::get('/', 'App\Http\Controllers\IndexController@index');
Route::post('/register', 'App\Http\Controllers\IndexController@register');//注册
Route::post('/login', 'App\Http\Controllers\IndexController@login');//登录
Route::post('/loginOut', 'App\Http\Controllers\IndexController@loginOut');//退出登录

Route::get('/user', 'App\Http\Controllers\UserController@index');
Route::post('/sendEmail', 'App\Http\Controllers\UserController@sendEmail');//发送邮箱验证码
Route::post('/changePassword', 'App\Http\Controllers\UserController@changePassword');//更改密码 todo 暂未进行session的时间处理
